<div class="late">
<h3>Late Tasks</h3>
	<ul>
	<?php foreach($late_tasks as $task):?>
	<li>
		<label>
			<input type="checkbox" id="complete_task_<?php echo $task->getId() ?>" class="complete_task_box" value="<?php echo $task->getId()?>" name="complete_task"/>	<span class="category"><?php echo ucwords($task->getResource()).':'?></span>
			<span class="subcategory"><?php echo $task->getName()?></span>
			Assigned to
			<?php echo render_profile_link($task->getUserRelatedByUserId())?>
			,
			<a href="#">thefinalclub.org</a>
			|
			<span class="overdue">
			<?php echo calculate_days_late($task->getDueDate('c'))?> days late
			</span>
		</label>
		<span>										
			<?php echo image_tag('ajax-loader_small.gif', 
					array('id' => 'task_loading_'.$task->getId(), 'style' => 'display: none;')) ?>
			<span id="status_update_<?php echo $task->getId() ?>" class="update_status" style="display: none;"></span>
			
		</span>
	</li>
	<?php endforeach?>
	</ul>
</div>